package com.server.modules.api.service;

import com.server.modules.sys.entity.member.Member;

import java.util.List;
import java.util.Map;

/**
 * xb_server
 * com.server.modules.api.service.impl
 * Created by wanglei on2016/8/15- 15:26.
 */
public interface IMService {
    public Map createNewIMUserSingle(String  userName,String password,String nickName);
    public Map modifyIMUserPasswordWithAdminToken(String userName, Map dataObjectNode);
    public Map addFriendSingle(String ownerUserName, String friendUserName);
    public Map deleteFriendSingle(String ownerUserName, String friendUserName);
    public Map getFriends(String ownerUserName);
    public Map imUserLogin(String username, String password);
    public Map sendMessages(String targetType, List<String> target, Map msg, String from, Map ext);
    //推送系统消息
    public Map sendSysMessages( List<String> target, Map msg, Map ext);
    public Member getFriendInfo(String hxName);
    /**
     * 注册IM用户[批量]
     *
     * 给指定Constants.APPKEY创建一批用户
     *
     * @param list
     * @return
     */
    public Map createNewIMUserBatch( List<Map<String,Object>> list);
    
    public Map queryChatMessages(Long timestamp,Long limit,String cursor,String  lessOrMore);
}
